package cn.monkey.family.data.uc.role.datascope;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Collection;

@Data
@EqualsAndHashCode(callSuper = true)
public class ConditionDataScopeDefinition extends DataScopeDefinition {

    public ConditionDataScopeDefinition() {
        this.setType(DataScopeType.CONDITION.name());
    }

    private Collection<Condition> conditions;

    @Data
    public static class Condition implements Serializable {
        private String key;
        private Object value;
    }

    @Data
    public static class EL implements Serializable {
        private String value;
    }

}
